package lk.icta.core.service;

import lk.icta.core.entity.Mortgage;
import lk.icta.user.entity.User;

/**
 * @author Duminda Dharmakeerthi
 */
public interface MortgageManagementService {
    /**
     * Adding a mortgage
     *
     * @param mortgage Mortgage to be added
     * @param user     The user requesting to add the mortgage
     */
    public void addMortgage(Mortgage mortgage, User user);

    /**
     * Updating a mortgage
     *
     * @param mortgage Mortgage to be updated
     * @param user     The user requesting to update the mortgage
     */
    public void updateMortgage(Mortgage mortgage, User user);
}
